package com.itheima.health.pojo;

import java.util.List;
import java.util.Objects;

public class Members {
    @Override
    public String toString() {
        return "Members{" +
                "months=" + months +
                ", memberCount=" + memberCount +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Members members = (Members) o;
        return Objects.equals(months, members.months) && Objects.equals(memberCount, members.memberCount);
    }

    @Override
    public int hashCode() {
        return Objects.hash(months, memberCount);
    }

    public List<String> getMonths() {
        return months;
    }

    public void setMonths(List<String> months) {
        this.months = months;
    }

    public List<Integer> getMemberCount() {
        return memberCount;
    }

    public void setMemberCount(List<Integer> memberCount) {
        this.memberCount = memberCount;
    }

    public Members(List<String> months, List<Integer> memberCount) {
        this.months = months;
        this.memberCount = memberCount;
    }

    public Members() {
    }

    private List<String> months;
    private List<Integer> memberCount;
}
